今天拍畢業照,哇!終於要畢業了,其實仔細想想大學四年超級快QQ
import requests
from bs4 import BeautifulSoup
page = [1,2,3]
url ="https://ithelp.ithome.com.tw/users/20108446/ironman/1958"
for i in page:
response = requests.get(url+'?page='+str(i))
soup = BeautifulSoup(response.text, 'html.parser')
for tmp in soup.find_all('a','qa-list__title-link'):
print("- ["+tmp.text.strip()+"]("+tmp.get('href').strip()+")")